Operating System
Q231.
Which of the following standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?[MSQ]Q233.
Wha is the output of the following program? main() { int a = 10; if(fork()) == 0)) a++; printf("%d\n",a); }Q234.
Consider the following program. main() { fork(); fork(); fork(); }How many new processes will be created?Q235.
Which of the following UNIX command allows scheduling a program to be executed at the specifies time?Q236.
Identify the correct order in which a server process must invoke the function calls accept, bind, listen, and recv according to UNIx socket API.Q237.
A process executes the code fork(); fork(); fork(); The total number of child processes created isQ238.
A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a socket(), a bind() and a listen() system call in that order, following which it is preempted. Subsequently, the client process P executes a socket() system call followed by connect() system call to connect to the server process S. The server process has not executed any accept() system call. Which one of the following events could take place?Q239.
Consider the execution of the following commands in a shell on a Linux operating system. bash$ cat alpha Mathematics bash$ In alpha beta bash$ rm alpha bash$ cat >> beta << SAME Information Technology SAME bash$ cat beta The output of the last command will be:Q240.
Consider the following code fragment: if (fork() == 0) { a = a + 5; printf("%d,%dn", a, &a); } else { a = a - 5; printf("%d, %dn", a, &a); } Let u, v be the values printed by the parent process, and x, y be the values printed by the child process. Which one of the following is TRUE?